package com.ruoyi.questionBank.service;

import com.ruoyi.common.vo.PageResult;
import com.ruoyi.questionBank.domain.AnswerResult;
import com.ruoyi.questionBank.domain.BuildPaperRule;
import com.ruoyi.questionBank.domain.ExamPaper;
import com.ruoyi.questionBank.vo.ExamPaperListVO;
import com.ruoyi.questionBank.vo.InsertQuestionVO;

import java.util.List;

public interface IExamPaperService {

    PageResult<ExamPaper> list(ExamPaperListVO vo);

    void insertQuestion(InsertQuestionVO vo);

    void removeQuestion(int id ,int qid);

    void removeQuestion(int id ,List<Integer> questionIdList);


    /** 构造试卷*/
    ExamPaper build(BuildPaperRule rule);

    ExamPaper get(int pid);

    /**
     * 提交答案
     * @param pid
     * @param answers
     * @return
     */
    AnswerResult submitAnswer(int pid, List<String> answers);

    void add(ExamPaper examPaper);

    void addDefault(ExamPaper examPaper);

    void update(ExamPaper examPaper);

    void del(int id);

    //获取进行中的考试
    ExamPaper getTheoryProcess();
}
